package com.hlbspringcloud.exception;

/**
 * @Author huanglibin
 * @Project idempotent
 * @Description 自定义异常类
 * @Date 2020-11-24-14-08-01
 * @Version 1.0
 */
public class ServiceException extends RuntimeException {
    private String code;
    private String msg;

    public ServiceException(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
